<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class Linksliststhird extends Model
{
    protected $table = 'links_lists_third';
    protected $primaryKey = 'id';

    public static function getLinksListsThird($links_id)
    {
        return self::select("path","appid","original_id")->where("links_id",$links_id)->first();
    }

    public static function insertLinksListsThird($links_id,$path,$appid,$original_id)
    {
        return self::insert(["links_id"=>$links_id,"path"=>$path,"appid"=>$appid,"original_id"=>$original_id,"created_at"=>time()]);
    }

    public static function updateLinksListsThird($links_id,$path,$appid,$original_id)
    {
        return self::where("links_id",$links_id)->update(["path"=>$path,"appid"=>$appid,"original_id"=>$original_id]);
    }
}
